﻿using Heroius.Extension.Presentation;

namespace WinPathMan
{
    public class PathEntity
    {
        public PathEntity()
        {
            Path = string.Empty;
        }

        public PathEntity(string path)
        {
            Path = path;
        }

        [Presentation(Label = "路径", Type = PresentationSupportedType.Folder)]
        public string Path { get; set; }

        public static implicit operator string(PathEntity entity)
        {
            return entity.Path;
        }

        public static implicit operator PathEntity(string path)
        {
            return new PathEntity(path);
        }
    }
}
